﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductionBoard.aspx.cs" Inherits="Catering.DisplayBoards.ProductionBoard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <link href="/Style/DisplayBoard.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript" ></script>
    <script type="text/javascript">
        function RefreshPage() {
            $("#Btn_Ref").trigger("click");
        }

        $(function () {
            $(".Table_2>tbody tr:odd").addClass("Table_Tr_odd");
            var test = setInterval(RefreshPage, 6000);
        });

        //查询
        function Search_Production() {
            var SearchDate = $("#txt_SearchDate").val();
            var Strsrc = window.location.href;
            if (Strsrc.indexOf("Date") > 0) {
                Strsrc = Strsrc.toString().substring(0, Strsrc.indexOf("Date") + 4);
            }
            else {
                Strsrc += "&Date";
            }
            Strsrc += "=" + SearchDate;
            window.location.href = Strsrc + "&Rid=" + Math.random();
        }
    </script>

    <style type="text/css">
        .Title_2{ width:100%; height:27px; background:url(/images/images_24.jpg) repeat-x; margin-top:20px;}
        .Title_2_Left{ width:32px; height:27px; background:url(/images/images_21.jpg) no-repeat; float:left;}
        .Title_2_text{  height:27px; padding:0px 10px; background:url(/images/images_22.jpg) repeat-x; color:#376ae9; font-size:16px; font-weight:bold; float:left; margin-left:20px;}
        
        .Title_3{height:60px; position:relative;}
        .Title_3_Option{ width:80px; height:27px; position:absolute; bottom:5px; right:10px;}
        .Title_3_Option li{ width:27px; height:27px; float:left; margin-left:10px;}
        
        .Table_Item{ width:100%; background-color:#e6eae9;}
        .Table_Item h2{width:100%; height:37px; line-height:37px; font-size:20px; text-align:left; text-indent:2em; background:url(/images/images_27.jpg) no-repeat left; border-bottom:2px solid #fff;}
        .Table_Item p{ text-indent:2em; padding:10px 0px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="layout" style=" position:relative; overflow-y:auto">
        <div class="Tab" style="display:none;">
            <ul >
                <li><a href="ProductionBoard.aspx?AreaID=2" class="<%=(Request.QueryString["AreaID"].ToString()=="2")?"curr":""%>">辽东作业区</a></li>
                <li><a href="ProductionBoard.aspx?AreaID=4" class="<%=(Request.QueryString["AreaID"].ToString()=="4")?"curr":""%>">渤南作业区</a></li>
                <li><a href="ProductionBoard.aspx?AreaID=1" class="<%=(Request.QueryString["AreaID"].ToString()=="1")?"curr":""%>">渤西作业区</a></li>
            </ul>
            <div style=" float:right;">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td><input type="text" id="txt_SearchDate" value="<%=Request.QueryString["Date"]==null?DateTime.Now.ToShortDateString():Request.QueryString["Date"].ToString()%>" onclick="WdatePicker()" style="width:80px;" /> </td>
                        <td><input type="button" id="Btn_Search" value="查询" onclick="Search_Production()" /></td>
                    </tr>
                </table>
           </div>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:Button ID="Btn_Ref" runat="server" Text="" style="width:0px; height:0px; border:0px;" onclick="Btn_Ref_Click" />
        <table border="0" cellpadding="0" cellspacing="0" width="97%">
            <tr>
                <td valign="top" style="width:60%">
                    <%--<div style=" height:600px; overflow-x:hidden; overflow-y:hidden;">--%>
                    <div class="Title_2">
                        <div class="Title_2_Left"></div>
                        <div class="Title_2_text">服务数据</div>
                    </div>
                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="Table_2" style="margin-top:10px;">
                        <thead>
                            <tr class="Table_2_Title">
                                <%--<td>班组</td>--%>
                                <td>服务人数</td>
                                <td>在岗人数</td>
                                <td>倒班人数</td>
                                <td>服务比例</td>
                                <td>就餐人数</td>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_Service" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <%--<td class="T2"><%#Eval("ClassName")%></td>--%>
                                        <td class="T1"><%#Eval("ServiceSum")%></td>
                                        <td class="T2"><%#Eval("OnthejobSum")%></td>
                                        <td class="T3"><%#Eval("ChangeshiftsSum")%></td>
                                        <td class="T2"><%#Eval("ServiceProportion")%></td>
                                        <td class="T3"><%#Eval("EatSum")%></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <%--<tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>
                            <tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>--%>
                        </tbody>
                    </table>


                    <div class="Title_2">
                        <div class="Title_2_Left"></div>
                        <div class="Title_2_text">培训应急情况</div>
                    </div>
                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="Table_2" style="margin-top:10px;">
                        <thead>
                            <tr class="Table_2_Title">
                                <td style="width:20%">班组名称</td>
                                <td>应急名称</td>
                                <td style="width:10%">类别</td>
                                <%--<td>人数</td>--%>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_YingJi" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <td class="T1"><%#Eval("className")%></td>
                                        <td class="T2"><%#Eval("mingchen")%></td>
                                        <td class="T3"><%#Eval("leibie")%></td>
                                        <%--<td class="T2"><%#Eval("renshu")%></td>--%>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <%--<tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>--%>
                        </tbody>
                    </table>

                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="Table_2" style="margin-top:10px;">
                        <thead>
                            <tr class="Table_2_Title">
                                <td style="width:20%">班组名称</td>
                                <td>培训项目</td>
                                <td style="width:10%">类别</td>
                                <%--<td>日期</td>--%>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_PeiXun" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <td class="T1"><%#Eval("className")%></td>
                                        <td class="T2"><%#Eval("peixunxiangmu")%></td>
                                        <td class="T3"><%#Eval("leibie")%></td>
                                        <%--<td class="T2"><%#Convert.ToDateTime(Eval("riqi")).ToShortDateString()%></td>--%>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
<%--                            <tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>--%>
                        </tbody>
                    </table>

                    <div class="Title_2">
                        <div class="Title_2_Left"></div>
                        <div class="Title_2_text">险情事件</div>
                    </div>
                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="Table_2" style="margin-top:10px;">
                        <thead>
                            <tr class="Table_2_Title">
                                <td style="width:20%">班组名称</td>
                                <td>名称</td>
                                <td>类别</td>
                                <td>整改措施</td>
                                <td style="width:10%">负责人</td>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_List" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <td class="T1"><%#Eval("className")%></td>
                                        <td class="T2"><%#Eval("mingcheng")%></td>
                                        <td class="T3"><%#Eval("leibie")%></td>
                                        <td class="T2"><%#Eval("zhenggaicuoshi")%></td>
                                        <td class="T3"><%#Eval("fuzeren")%></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <%--<tr class="Table_Tr">
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                                <td class="T3"></td>
                            </tr>--%>
                        </tbody>
                    </table>
                    <%--</div>--%>

                </td>
                <td  valign="top" style="padding:0px 10px;">
                    <div class="Title_2">
                        <div class="Title_2_Left"></div>
                        <div class="Title_2_text">原料验收情况</div>
                    </div>
                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="Table_2" style="margin-top:10px;">
                        <thead>
                            <tr>
                                <td style="width:30%">
                                    <%--<div style="height: 85px;position: absolute;left: 0px;width: 100%;top: -25px;">
                                        <div class="Title">
                                            <div class="Title_Left"></div>
                                            <div class="Title_Right"></div>
                                            <div class="Table_2_Title" style=" height:50px; padding-top:35px;">
                                                <%switch (Request.QueryString["AreaID"].ToString()) { 
                                                      case "1":%>渤西作业区<%break;
                                                      case "2":%>辽东作业区<%break;
                                                      case "4":%>渤南作业区<%break;
                                                  } %></div>
                                        </div>
                                    </div>--%>
                                    上菜情况
                                </td>
                                <td>是否上菜<%--<div style="height: 85px;position: absolute;left: 0px;width: 100%;top: -25px;">
                                        <div class="Title">
                                            <div class="Title_Left"></div>
                                            <div class="Title_Right"></div>
                                            <div class="Table_2_Title" style=" height:50px; padding-top:35px;">
                                                <%switch (Request.QueryString["AreaID"].ToString()) { 
                                                      case "1":%>渤西作业区<%break;
                                                      case "2":%>辽东作业区<%break;
                                                      case "4":%>渤南作业区<%break;
                                                  } %></div>
                                        </div>
                                    </div>--%>
                                </td>
                                <td>是否合格</td>
                                <td>是否汇报</td>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_YanShou" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <td class="T1"><%#Eval("ClassName")%></td>
                                        <%--<td class="T2"><%#(Eval("shangcai") != null && Eval("shangcai").ToString()=="True")?"是":"否"%></td>--%>
                                        <td class="T2">是</td>
                                        <td class="T3"><%#(Eval("hege") != null && Eval("hege").ToString() == "True") ? "是" : "否"%></td>
                                        <td class="T2"><%#(Eval("lingdao") != null && Eval("lingdao").ToString() == "True") ? "是" : "否"%></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <%--<tr class="Table_Tr">
                                <td class="T1">JZ20-2</td>
                                <td class="T2"></td>
                                <td class="T3"></td>
                                <td class="T2"></td>
                            </tr>--%>
                        </tbody>
                    </table>
                    <div class="Title_2">
                        <div class="Title_2_Left"></div>
                        <div class="Title_2_text">倒班情况</div>
                    </div>
                    <table border="0" cellpadding="0" cellspacing="1" width="100%" class="Table_2" style="margin-top:10px;">
                        <thead>
                            <tr>
                                <td  style="width:30%">班组名称</td>
                                <td> &nbsp;&nbsp;上&nbsp;&nbsp;</td>
                                <td> &nbsp;&nbsp;下 &nbsp;&nbsp;</td>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="Rep_Daoban" runat="server">
                                <ItemTemplate>
                                    <tr class="Table_Tr">
                                        <td class="T1"><%#Eval("ClassName")%></td>
                                        <td class="T2"><%#Eval("upNumber")%></td>
                                        <td class="T3"><%#Eval("downNumber")%></td>                                        
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>
                </td>
            </tr>
        </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
